package com.ruoyi.backStage.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单对象 order
 *
 * @author zhengjq
 * @date 2023-07-03
 */
public class Order extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单id */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 取件地址信息 */
    @Excel(name = "取件地址信息")
    private String shippingAddressInfo;

    /** 寄件地址信息 */
    @Excel(name = "寄件地址信息")
    private String pickupAddressInfo;

    /** 物品类型 */
    @Excel(name = "物品类型")
    private String itemType;

    /** 重量 */
    @Excel(name = "重量")
    private Long weight;

    /** 备注 */
    @Excel(name = "备注")
    private String remarks;

    /** 订单金额 */
    @Excel(name = "订单金额")
    private String money;

    /** 下单时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "下单时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderTime;

    /** 取件码 */
    @Excel(name = "取件码")
    private String receivingCode;

    /** 订单状态，0为未接单，1为派送中，2为已完成 */
    @Excel(name = "订单状态，0为未接单，1为派送中，2为已完成")
    private String orderStatus;

    /** 物品图片 */
    @Excel(name = "物品图片")
    private String itemImage;

    /** 送达时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "送达时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deliveryTime;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setShippingAddressInfo(String shippingAddressInfo)
    {
        this.shippingAddressInfo = shippingAddressInfo;
    }

    public String getShippingAddressInfo()
    {
        return shippingAddressInfo;
    }
    public void setPickupAddressInfo(String pickupAddressInfo)
    {
        this.pickupAddressInfo = pickupAddressInfo;
    }

    public String getPickupAddressInfo()
    {
        return pickupAddressInfo;
    }
    public void setItemType(String itemType)
    {
        this.itemType = itemType;
    }

    public String getItemType()
    {
        return itemType;
    }
    public void setWeight(Long weight)
    {
        this.weight = weight;
    }

    public Long getWeight()
    {
        return weight;
    }
    public void setRemarks(String remarks)
    {
        this.remarks = remarks;
    }

    public String getRemarks()
    {
        return remarks;
    }
    public void setMoney(String money)
    {
        this.money = money;
    }

    public String getMoney()
    {
        return money;
    }
    public void setOrderTime(Date orderTime)
    {
        this.orderTime = orderTime;
    }

    public Date getOrderTime()
    {
        return orderTime;
    }
    public void setReceivingCode(String receivingCode)
    {
        this.receivingCode = receivingCode;
    }

    public String getReceivingCode()
    {
        return receivingCode;
    }
    public void setOrderStatus(String orderStatus)
    {
        this.orderStatus = orderStatus;
    }

    public String getOrderStatus()
    {
        return orderStatus;
    }
    public void setItemImage(String itemImage)
    {
        this.itemImage = itemImage;
    }

    public String getItemImage()
    {
        return itemImage;
    }
    public void setDeliveryTime(Date deliveryTime)
    {
        this.deliveryTime = deliveryTime;
    }

    public Date getDeliveryTime()
    {
        return deliveryTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("shippingAddressInfo", getShippingAddressInfo())
                .append("pickupAddressInfo", getPickupAddressInfo())
                .append("itemType", getItemType())
                .append("weight", getWeight())
                .append("remarks", getRemarks())
                .append("money", getMoney())
                .append("orderTime", getOrderTime())
                .append("receivingCode", getReceivingCode())
                .append("orderStatus", getOrderStatus())
                .append("itemImage", getItemImage())
                .append("deliveryTime", getDeliveryTime())
                .toString();
    }
}
